package com.zky.gulimall.product.feign;

import com.zky.common.utils.R;
import com.zky.gulimall.product.feign.fallback.SecKillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description 秒杀服务
 * @Author 张开源
 * @Date 2022/12/30 20:51
 * @Version 1.0
 **/
@FeignClient(value = "gulimall-seckill",fallback = SecKillFeignServiceFallBack.class)
public interface SecKillFeignService {
    /**
     * 当前时间可以参与的秒杀商品信息
     *
     * @return
     */
    @GetMapping("/sku/secKill/{skuId}")
    R getSkuSecKillInfo(@PathVariable("skuId") Long skuId);
}
